#ifndef WWW_DATA_H
#define WWW_DATA_H

//abcd~~ sorting
#include <iostream>
#include <QCheckBox>
#include <QComboBox>
#include <QDate>
#include <QDateTime>
#include <QDialog>
#include <QDomDocument>
#include <QDomNode>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QGroupBox>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>
#include <QListWidgetItem>
#include <QMessageBox>
#include <QPrintDialog>
#include <QPrinter>
#include <QPushButton>
#include <QScrollArea>
#include <QScrollBar>
#include <QSpinBox>
#include <QStandardItem>
#include <QString>
#include <QTableWidgetSelectionRange>
#include <QTemporaryFile>
#include <QTextDocumentWriter>
#include <QTextStream>
#include <QVBoxLayout>
#include <QWidget>
#include <QXmlInputSource>
Q_DECLARE_METATYPE(QTableWidgetItem);

class wwwMemo{
public:
    QString title;
    QString content;
    QDate date;
    QIcon image_icon;
    QString image_name;
    QTableWidgetItem* location;
    wwwMemo();
    //wwwMemo(QString mtitle="", QString mcontent="", QDate mdate=NULL, QIcon mimage_icon="", QString mimage_name="", QTableWidgetItem* mlocation=0);


};

class wwwGPS{
public:
    QString name;
    QDate date;
    QString group;
    int iamge_count;
    QString lon;
    QString lat;
    QTableWidgetItem* location;

    wwwGPS();

};

class wwwImage{
public:
    QString name;
    QIcon thumnail;
    QString tag;
    QDate date;
    QString group;
    QString GPS;
    QString path;
    wwwMemo memo;
    QTableWidgetItem* location;

    wwwImage();
    //wwwImage(QString iview = "", QString iname = "", QString itag = "", QString idate = "", QString igroup = "", QString ipath = "");
    //wwwimage( const QDomElement &e);
    //QDomElement createXMLNode(QDomDocument &d);

};

class wwwdata{
public:
    QList<wwwImage*> image;
    QList<wwwGPS*> GPS;
    QListWidget* widget;

    wwwdata();
    //wwwdata(int Iimage_count = 0, int Itime_count = 0, int Ispot_count = 0, int Itag_count = 0);
    //QDomElement createXMLNode(QDomDocument &d);
};

#endif // WWW_DATA_H

